#include "threadpool.hpp"
void ConnectSql()
{
    std::cout << "sql" << std::endl;
}
void ConnectSqld()
{
    std::cout << "sqld" << std::endl;
}
void debug()
{
    std::cout << "debuging" << std::endl;
}
using func = std::function<void()>;
int main()
{
    std::unique_ptr<threadpool<func>> pool = std::make_unique<threadpool<func>>(5);
    pool->InitThreadPool();
    pool->Start();
    pool->Enqueue(ConnectSql);
    pool->Stop();
    pool->Wait();

    return 0;
}